﻿@page "/MakeTemplate_web2"
@using CardMaker.Library.Models
@using CardMaker.Library.Services
@using SQLite
@inject ICardTemplateService _cardTemplateService
@inject ISideImageStorage _sideImageStorage
@inject ICardTemplateStorage _cardTemplateStorage
<p>点击图片时触发 <code>OnListViewItemClick</code> 事件</p>
@*<ListView TItem="CardTemplate"
          Items="@cardTemplates"
          OnListViewItemClick="OnListViewItemClick">*@
<ListView TItem="CardTemplate" Items="@cardTemplates">
    <HeaderTemplate>
        <div>模板列表</div>
    </HeaderTemplate>
    <BodyTemplate>
        <Card Color="Color.Dark"
              IsCenter="true">
            <BodyTemplate>
                <div class="lv-demo-desc">@context.TemplateName</div>
            </BodyTemplate>
        </Card>
    </BodyTemplate>
    <FooterTemplate>
        <div class="text-end">
            Copyright Bootstrap Blazor
        </div>
    </FooterTemplate>
</ListView>
